package com.example.springstudy.service;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * @Auther ZhaoJunZhou
 * @Date 2020/9/24
 */
@Service
@Cacheable(cacheNames = "order")
public class OrderService {
    @Cacheable(key = "#id")
    public String findOrder(Integer id) {
        return "order" + id;
    }
}
